package cn.wmw.xyy.feign;

import cn.wmw.result.JsonResult;
import cn.wmw.xyy.domain.MessageSms;
import cn.wmw.xyy.fallback.MessageSmsFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-comm",path = "messageSms",contextId = "messageSmsFeignClient",fallbackFactory = MessageSmsFeignClientFallbackFactory.class)
public interface MessageSmsFeignClient {
    @RequestMapping(value="/save",method= RequestMethod.POST)
    JsonResult saveOrUpdate(@RequestBody MessageSms messageSms);

}
